class CreateAdmin < ActiveRecord::Migration
  def self.up
    User.create(:name => "admin", :email => "admin", :password => "admin", :password_confirmation => "admin");
    User.find(:first).roles << Role.find_by_title('admin')
  end

  def self.down
    User.find(:first).destroy;
  end
end
